<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Hello</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div>Hello World!</div>
<div>
    <table>
        <thead>
        <tr>
            <th>用户名称</th>
            <th>年龄</th>
            <th>创建时间</th>
        </tr>
        </thead>
        <tbody>
        <tr th:if="${list !=null}" th:each="item : ${list}">
            <td th:text="${item.name}"></td>
            <td th:text="${item.age}"></td>
            <!-- <td th:text="${item.createDate}"></td>
            -->
            <td th:text="${#dates.format(item.createDate, 'yyyy-MM-dd')}"></td>

        </tr>
        </tbody>
    </table>
</div>
</body>
</html>